<?php
require_once dirname(dirname(__DIR__)).'/plugins/php-resque/lib/Resque.php';
$backend = "127.0.0.1:6379";
Resque::setBackend('127.0.0.1:6379');
class Queue{
    //添加job到消息队列
    static public function enqueue($job_name, $args=[], $queue='default'){
        Resque::enqueue($queue, $job_name, $args, false);//false
    }
}
